package cn.edu.fzu.homemaking.wallet.domain.entity;

import cn.edu.fzu.homemaking.wallet.domain.enums.ChargeModeEnum;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户流水表
 */
@Data
public class MoneyWater {

    private Long           id;

    //转账用户id
    private Long           userId;

    //被转账用户id
    private Long           relateId;

    //关联用户名称
    private String         relateName;

    //当前余额
    private BigDecimal     surplus;

    //转账金额
    private BigDecimal     transfer;

    //转账方式
    private ChargeModeEnum chargeMode;

    //备注
    private String         description;

    //创建时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date           createTime;
}
